Pergunta de entrevista da empresa Microsoft

Something about finding a minimal element in the matrix