Bloomberg interview question

Reverse a singly linked list.