Intuit Interview Question

A 2-d matrix leetcode question