Amazon interview question

Reverse doubly linked list, common question