XYZ Interview Question

BFS, DFS and other tree algos