Moonfrog Labs Interview Question

about some puzzles