Exercise 6.6: Palindrome