MathWorks Interview Question

Leetcode array based question on asteroids