Pregunta de entrevista de Amazon

graphs, bfs ,dfs, recursions and 2 pointers