MathWorks interview question

Based on linear expressions