Healthy.io Interview Question

Leetcode question something with matrixes