Question d’entretien chez Amazon

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