Number of Subsequences That Satisfy the Given Sum Condition | Leetcode 1498