Pergunta de entrevista da empresa Prudential

Reverse a linked list which was easy.