Amazon interview question

given a mathematical expression to solve ,, algebraic expressions