Amazon interview question

Valid algebraic expression