Pergunta de entrevista da empresa IMC Trading

Doing BFS/DFS on a chess board, stack manipulations.