Cisco interview question

Algorithms (DFS,BFS), recursion.