Solved stock maximize