Pregunta de entrevista de Salesforce

Largest increasing sequence in 2D matrix