Smallest Number Following Pattern Leetcode Problems Dsa