add max profit buying stock i, ii