Advent of Code 2023: Day 22

Read the problem