Synopsys Interview Question

Reverse a linked list with constant space.