Intel Corporation interview question

Basic algorithms (DFS,BFS)