Constrained Subset Sum(LeetCode 1425):

Problem