public static void main(String args[]) {
        int input[] = {2,3,5};
        PrintSumCombination psc = new PrintSumCombination();
        List<List<Integer>> result = psc.combinationSum(input, 10);
        result.forEach(r -> {
            r.forEach(r1 -> System.out.print(r1 + " "));
            System.out.println();
        });
    }
Date 07/10/2015
@author Tushar Roy

Given an input and total print all combinations with repetitions in this input
which sums to given total.
e.g
input - {2,3,5}
total - 10

Output
[2,2,2,2,2],
[2,2,3,3],
[2,3,5],
[5,5]]
Reference
https://leetcode.com/problems/combination-sum/
src/com/interview/recursion/PrintSumCombination.java