Leetcode Reverse Integer Solution Intermediate