Shortest Palindrome Leetcode Solution