Oracle interview question

Asked about sample palindrome logic