Adobe interview question

How to reverse a singly linked list.