Pregunta de entrevista de Snap

Graph Problems, especially about DFS and BFS