Reverse Integer Problem Leetcode Javascript 30