Pregunta de entrevista de Next Insurance

A function to reverse to linked list.