Driver Code
public static void main ( String args [ ] ) { int [ ] [ ] arr = { { 1 , 5 , 12 } , { 6 , 7 , 11 } , { 8 , 9 , 10 } } ; int N = arr . length ; int K = 2 ; System . out . print ( maximumMedian ( arr , N , K ) ) ; } }