Count Subset Sum Problem Leetcode Javascript