Advent of code 2022. Day 14

Solution