IBM interview question

Reverse a singly linked list