Shortest Palindrome Leetcode Solutions C