Amazon interview question

Reverse a doubly linked list given a pointer to the head node.