Amazon Interview Question

Determine if a mathematical equation is valid