MathWorks Interview Question

a question from partial differentiation