Pregunta de entrevista de Gentex Corporation

Write a function to reverse a singly linked list.