Maximum Sum Combination Leetcode Problem