finished Palindrome sample