Pergunta de entrevista da empresa Uber

A graph algorithm problem that can be solved with BFS/DFS