Domanda di colloquio di Microsoft

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