
There is a computer that can run an unlimited number of tasks at the same time . You are given a 2D integer array tasks where tasks[i] = [start _i , end _i , duration _i ] indicates that the i ^th task should run for a total of duration _i seconds (not necessarily continuous) within the inclusive time range [start _i , end _i ] .
You may turn on the computer only when it needs to run a task. You can also turn it off if it is idle.
Return the minimum time during which the computer should be turned on to complete all tasks .
1 <= tasks.length <= 2000tasks[i].length == 31 <= start _i , end _i <= 20001 <= duration _i <= end _i - start _i + 1