Pregunta de entrevista de Cognizant

Tree questions, graph questions, stack