Exercise 6.6 PALINDROME CHECKER