Amazon interview question

Graph based DFS or BFS quetsions