Oracle Interview Question

Reversing a linked list