MathWorks Interview Question

Based on linear expressions