Reverse Integer Problem Leetcode Sql