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 or if there are fees.
Analogy: Imagine you have a fruit stand and prices change daily. You want to buy fruit when cheap and sell when expensive to earn money. Sometimes you can only buy and sell once, sometimes many times, and sometimes you pay a fee each time you sell.
Prices: [7] -> [1] -> [5] -> [3] -> [6] -> [4] Buy low ↑ Sell high ↑
