Function to find the maximum sum among all ( a x b ) sub - matrices of the matrix
function maxSubMatrixSumQueries ( mat , n , m , queries , q ) { let dp = Array ( n ) . fill ( ) . map ( ( ) => Array ( m ) ) ;