Cognizant Interview Question

Reverse a linked list