Function to find the maximum sum among all ( a x b ) sub - matrices of the matrix
static int [ ] maxSubMatrixSumQueries ( int [ , ] mat , int n , int m , int [ , ] queries , int q ) { int [ , ] dp = new int [ n , m ] ;