Next Greater Integer Leetcode Sql