best-time-to-buy-and-sell-stock, note to update max with min