LeetCode Solution, Medium, 5. Longest Palindromic Substring