X Interview Question

Check to see if the string is Palindrome.