PROS interview question

Write a method to reverse a linked list.