Driver Code
public static void main ( String [ ] args ) { int arr [ ] = { 10 , 5 , 9 , 101 , 24 , 2 , 20 , 14 } ; int n = arr . length ; int k = 6 ; System . out . print ( solve ( arr , 0 , 0 , 0 , n , k ) ) ; } }