IBM Interview Question

Reversing the linked list