Longest Palindrome Problem In Leetcode Contest Solution