longest palidromic substring part I from leetcode updated