Bloomberg Interview Question

Given a string containing a mathematical expression, calculate the result