Reverse Integer Leetcode Solution C