Question d’entretien chez MathWorks

Leetcode question, two technical interview with a total about 4.