Miro Interview Question

Leetcode like medium problem on arrays