D. E. Shaw India interview question

To reverse a linked list