Oracle Interview Question

Write iterative or recursive program to reverse a linked list.