Pregunta de entrevista de Microsoft

questions with graph and trees