Pergunta de entrevista da empresa JPMorganChase

Technical Coding Question on 2D Matrix