Metromile interview question

Given a 2-dimensional array develop an algorithm that will return a rectangle of similar values.