LinkedIn interview question

BFS and DFS basic tree questions