Amadeus interview question

How to reverse a doubly linked list