I have a matrix and 2 pointers i,j.
Sub-matrix is a square or rectangle, which begins in one of the cells in the matrix and continues until the cell [n-1] [m-1].
The function has to calculate the starting cells that sum of the values of its sub-matrix is the highest, and save the the this sub-matrix indexes with the pointers i,j.
Can anyone help me with this?