Domanda di colloquio di MathWorks

algorithm problem with deque method