Advent of code 2021/6
Ajax Direct

Answer

Part 1 :
Part 2 :