Combination Sum Problem Leetcode Javascript