Next Smaller To Right Leetcode Problems Sql