Pregunta de entrevista de Microsoft

Coding question about linked lists.