Pregunta de entrevista de AKUNA CAPITAL

The problem was about Breadth First Search algorithm.