Greedy Algorithms - Task Scheduler (CPU Cooling)
Consider a CPU task scheduler where tasks are represented by characters and each task requires 1 unit of time. If the cooldown period
n is 2, what is the minimum time to complete tasks ['B','B','A']?