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 buy fruits at a low price and sell them later at a higher price. Sometimes you can only sell once, sometimes many times, and sometimes you pay a small fee each time you sell.
Prices: 7 -> 1 -> 5 -> 3 -> 6 -> 4 -> null Buy low, sell high to earn profit.
