Frage im Vorstellungsgespräch bei Metromile

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