I have written following code to return all possible combinations of Array of Integers
def findAllCombinations ( remain:Array[Int], partial:Array[Int],cum :L