solve question: valid palindrome