Pregunta de entrevista de Medius

Leetcode problem involving matrix algorithms