improve code, it's greedy, not dp
complete problems/best-time-to-buy-and-sell-stock/ by dp