WD Interview Question

BFS and DFS of tree