Apple interview question

reverse a singly linked list