Ericsson interview question

1. Reverse a linked list.