Mental Model
We want to find the best times to buy and sell stocks to maximize profit by looking at price changes over days.
Analogy: Imagine you buy fruits at a low price one day and sell them later at a higher price to earn money, but you can only hold one fruit at a time or multiple depending on the rules.
Day: 0 1 2 3 4 5 Price: 100 -> 180 -> 260 -> 310 -> 40 -> 535 Buy/Sell points show where to buy low and sell high.
