[LintCode] Valid Palindrome