Pergunta de entrevista da empresa Microsoft

Write a method (on the whiteboard) to reverse a singly linked list.