Visa Inc. interview question

reverse a linked list