Pregunta de entrevista de Saviynt

Matrix based python problem solving question of medium complexity