Palindrome function working exercise 6.6