Google interview question

An interview question was isPalindrome