Solver: combination of all possible sum for a given number