Amazon Interview Question

given a mathematical expression to solve ,, algebraic expressions