https://leetcode.com/problems/task-scheduler/ with original order i.e you need to maintain the order in which tasks are being executed at the same time maintaining the cool down period.