Innovaccer Interview Question

stock maximizing profit problem