Bsnl interview question

Graph related questions on DFS and BFS