Apple interview question

reverse linked list