Google Interview Question

An interview question was isPalindrome