Google interview question

Array ordering, find the submatrix