Smallest Number Following Pattern Leetcode Problems Sql W3schools