Count Subset Of Given Sum Leetcode Javascript