Oracle interview question

One Linked List question, Second was a general math question