Compass Interview Question

palindromes with variations that increased complexity