Amazon Interview Question

Econometric problem and I had to solve it.