Leetcode Reverse Integer Problem Solution