Driver code
public static void main ( String [ ] args ) { int arr1 [ ] = { 1 , 5 , 7 , 2 , 9 , 14 } ; System . out . print ( numOfCombinations ( arr1 , 6 ) + "NEW_LINE"); int arr2 [ ] = { 3 , 6 , 9 , 12 } ; System . out . print ( numOfCombinations ( arr2 , 4 ) + "NEW_LINE"); } }