Algorithm To Reverse A Number In Leetcode Ratings