Leetcode Problem Reverse Integer In Java