Raytheon interview question

How to reverse a linkedlist