Pergunta de entrevista da empresa AKUNA CAPITAL

The problem was about Breadth First Search algorithm.