Reverse Integer Leetcode Question