Salesforce Interview Question

palindromes in a string