solution for StockMaximize.cp