Leetcode Palindrome Number Solution C