Leetcode Palindrome String Program