Medius Interview Question

Leetcode problem involving matrix algorithms