Oracle Interview Question

Given a linked list, we have to reverse it.