Displaying the maximum sum submatrix

how to display the submatrix yielding maximum sum from this row wise and column wise sorted matrix?

Along with checking the maximum sum, you can store the coordinate positions

the coordinates of the cell which has the maximum value in the suffix sum subarray say (i,j) and then iterate from this cell till the last cell of the original matrix to display the maximum sum submatrix right?

@Senjuti256 Yes you are right