finds palindromes
solves problem