Amazon Interview Question

Valid algebraic expression