MathWorks interview question

some C programming context.