Persistent Systems Interview Question

write a code to reverse singly link list