Google Interview Question

Array ordering, find the submatrix