Miro Interview Question

Hard leetcode / hackerrank style challenge