MathWorks interview question

The programming problem I got was to calculate an equation in string.