Find sum of combinations from array of numbers.