Advent of code 2016/21
Ajax Direct

Answer

Part 1 :
Part 2 :