Hexagon interview question

Coding Reverse double linked list