Amazon interview question

leetcode easy problem - something with palindromes