Leetcode 1425. Constrained Subsequence Sum | Hello Interview