program to make palindromes