Function call
queries_fxn ( matrix , queries ) ; document . write ( " " ) ; for ( let i = 0 ; i < matrix . length ; i ++ ) { document . write ( " " ) ; for ( let j = 0 ; j < matrix [ i ] . length ; j ++ ) { if ( j < matrix [ i ] . length - 1 ) { document . write ( matrix [ i ] [ j ] + " " ) ; } else { document . write ( matrix [ i ] [ j ] + " " ) ; } } if ( i == matrix . length - 1 ) document . write ( " " ) ; else document . write ( " " ) ; } document . write ( " " ) ;