Salesforce interview question

palindromes in a string