Input: prices = [1, 2, 4, 2, 5, 7, 2, 4, 9, 0]
Explanation: One optimal strategy is: Buy at 1, sell at 4 (+3), Cooldown, Buy at 2, sell at 7 (+5), Cooldown, Buy at 2, sell at 9 (+7). Total profit = 3 + 5 + 7 = 15. Another optimal strategy is Buy at 1, sell at 7 (+6), Cooldown, Buy at 0, sell at 9 (+9). Total profit = 6 + 9 = 15