Mental Model
We want to find the best times to buy and sell stocks to make the most money. Different rules change how many times we can trade.
Analogy: Imagine you have a fruit stand and prices change daily. You want to buy fruit cheap and sell it high to earn money. Sometimes you can only buy and sell once, sometimes many times, and sometimes you have to wait a day before buying again.
Prices: [7, 1, 5, 3, 6, 4] Buy low ↑ at 1, sell high ↑ at 6 Profit = 6 - 1 = 5
