Pergunta de entrevista da empresa NEC Corporation

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