Yahoo interview question

check whether a String is Palindrome or not?