MathWorks Interview Question

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