IBM interview question

Check if the string is Palindrome