Leetcode Problem Reverse Integer Solution