Advent of Code 2023: Day 18

Read the problem