Microsoft Interview Question

Given a mathematical expression as a string, evaluate it and return the value.