Algorithm To Reverse A Number In Leetcode Contest Solution