Reverse Integer Leetcode Solution