Algorithm To Reverse A Number In Leetcode Contest