Amazon Interview Question

leetcode easy problem - something with palindromes