Altimetrik interview question

Check for palindrome in String.