Pergunta de entrevista da empresa Next Insurance

A function to reverse to linked list.