Reverse A Integer Leetcode Solution