Citadel Interview Question

DFS/BFS tree question in file system