Pregunta de entrevista de Palantir Technologies

Code a math expression parser (subtraction and multiplication), any language, consider parentesis.