Pregunta de entrevista de Amazon

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