Pergunta de entrevista da empresa Hyperscience

Programming problem about BFS and DFS