MAQ Software interview question

DFS, BFS, Recursion