Intel Corporation interview question

reverse the linked list