Driver code
public static void main ( String [ ] args ) { int N = 2 , M = 10 , K = 5 ; int [ ] [ ] arr = new int [ ] [ ] { { 4 , 0 , 15 , 3 , 2 , 20 , 10 , 1 , 5 , 4 } , { 4 , 0 , 10 , 3 , 2 , 25 , 4 , 1 , 5 , 4 } } ; PossibleSum ( N , M , arr , K ) ; } }