IBM Interview Question

Check if the string is Palindrome