Oracle Interview Question

program to reverse linked list