Problem E. Find The Submatrix

HDU - 6323