Longest Palindrome Problem Leetcode Two