NEC Corporation Interview Question

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