implement make palindrome