Telmap interview question

reverse linked list