Cure.Fit interview question

1) Question on DFS, Binary Tree, Priority Queue