MathWorks interview question

Problem solving and C programming skill.