Driver Code
public static void main ( String [ ] args ) { int arr [ ] = { 12 , 4 , 6 , 13 , 5 , 10 } ; int N = arr . length ; int K = 3 ; int L = 4 ; int R = 10 ; System . out . print ( cntWaysSelection ( arr , N , K , L , R ) ) ; } }