Innovaccer interview question

stock maximizing profit problem