Oracle interview question

- reverse a singly linked list