FactSet Interview Question

Write code to reverse a linked list.