Pergunta de entrevista da empresa Bloomberg

Maximum sum of all the elements in a sub-rectangle from a matrix.