MathWorks interview question

a question from partial differentiation