solution of Valid Palindrome