Advent of code 2022. Day 17

Solution