NEC Corporation interview question

Q: They asked me to write the code to reverse a linked list.