Pergunta de entrevista da empresa Nokia

programming problem with BFS on a graph