Driver code
public static void Main ( ) { int [ ] arr1 = { 1 , 5 , 7 , 2 , 9 , 14 } ; Console . WriteLine ( numOfCombinations ( arr1 , 6 ) ) ; int [ ] arr2 = { 3 , 6 , 9 , 12 } ; Console . WriteLine ( numOfCombinations ( arr2 , 4 ) ) ; } }