Reverse Integer Problem Leetcode Javascript Interview