Pregunta de entrevista de Urban Company

Write a function to reverse a linked list.