update solution to get sum of number combination from array.