Domanda di colloquio di Amazon

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