Solve stock-maximize