Driver Code
static public void Main ( ) { int [ ] row = { 2 , 2 , 2 , 2 , 2 } ; int [ ] column = { 5 , 5 , 0 , 0 } ; int r = row . Length ; int c = column . Length ; if ( matrix_exist ( row , column , r , c ) ) Console . Write ( " YES " ) ; else Console . Write ( " NO " ) ; } }