Oracle interview question

Given a linked list, we have to reverse it.