Hexagon Interview Question

Reverse singly linked list in place