Driver code
public static void Main ( string [ ] args ) { int [ , ] arr = { { 1 , 5 , 12 } , { 6 , 7 , 11 } , { 8 , 9 , 10 } } ; int N = arr . GetLength ( 0 ) ; int K = 2 ; Console . WriteLine ( maximumMedian ( arr , N , K ) ) ; } }