Pergunta de entrevista da empresa Shine.com

Write a program to reverse a linked list?