asf interview question

reverse a given linked list