Pregunta de entrevista de Delmatic

Solve example problem from the past Advent of Code.