processorTime array in ascending order.tasks array in descending order.maxTime to keep track of the maximum time taken by any processor.tasks array.maxTime with the maximum completion time encountered.maxTime as the minimum time when all tasks have been executed.