Pergunta de entrevista da empresa MathWorks

Technical interview was a leetcode hard backtracking