Zopper interview question

Graph DFS and BFS traversal