Previously we have written a program to check for palindromes: