Oracle Interview Question

reverse the linked list, SQL, Python basics