Reverse Integer Leetcode Solution Java