Next Insurance Interview Question

A function to reverse to linked list.