Oracle Interview Question

One Linked List question, Second was a general math question