Google interview question

Implement a function that takes a string representing a mathematical expression composed of nested operations—such as add, sub, and mul—and returns the computed integer result