Pregunta de entrevista de Microsoft

Questions from linked list and tree