leetcode Longest Palindromic Substring issue