MathWorks Interview Question

Ideal Number in range Broken Calculator