Longest Palindrome Algorithm Leetcode Rating