Leetcode Reverse Integer Solution