Intel Corporation Interview Question

Basic algorithms (DFS,BFS)