Capital One interview question

How to reverse a linked list.