you give 0indexed integer array task tasksi represent difficulty level task in round complete 2 3 task difficulty levelreturn minimum round require complete task 1 possible complete task Example 1input task 2233244444output 4explanation to complete task possible plan in round complete 3 task difficulty level 2 in second round complete 2 task difficulty level 3 in round complete 3 task difficulty level 4 in fourth round complete 2 task difficulty level 4 it show task complete few 4 round answer 4example 2input task 233output 1explanation there 1 task difficulty level 2 round complete 2 3 task difficulty level hence complete task answer 1 Constraints1 taskslength 1051 tasksi 109