Cognizant interview question

Tree questions, graph questions, stack