added solution to the valid palindrome problem