Shortest Palindrome Leetcode Problem