OKG interview question

Sell price with some modifications.