Pergunta de entrevista da empresa Optiver

some math puzzles such as counting squares in a maze.