Oracle interview question

Reversing a linked list