Oracle interview question

Write a program to check whether a string is a palindrome or not.