United Airlines interview question

write the code of how to reverse a Linked List ?