Domanda di colloquio di Delmatic

Solve example problem from the past Advent of Code.