Hexagon Interview Question

Coding Reverse double linked list