Oracle interview question

Write iterative or recursive program to reverse a linked list.