Kona Software Lab interview question

Write the code to reverse a linked list.