Pregunta de entrevista de Nokia

programming problem with BFS on a graph