Solve Valid Palindrome