[LintCode] Longest Palindromic Substring