Pregunta de entrevista de Microsoft

Write an algorithm to reverse a linked list.