Reverse Integer Problem Leetcode Interview Sql