IBM interview question

Reverse a link list