Pregunta de entrevista de MathWorks

very hard problems which do not come from Leetcode