Amazon interview question

Graph Problems using DFS or BFS traversal