Leetcode Palindrome Question In C