create is_palindrome3 using 3rd palindrome algorithm