you n task m worker each task strength requirement store 0indexed integer array task ith task require tasksi strength complete the strength worker store 0indexed integer array worker jth worker have workersj strength each worker assign single task strength great equal task strength requirement ie workersj tasksiadditionally pill magical pill increase worker strength strength you decide worker receive magical pill worker magical pillGiven 0indexed integer array task worker integer pill strength return maximum number task complete Example 1input task 321 worker 033 pill 1 strength 1output 3ExplanationWe assign magical pill task follow give magical pill worker 0 Assign worker 0 task 2 0 1 1 assign worker 1 task 1 3 2 Assign worker 2 task 0 3 3example 2input task 54 worker 000 pill 1 strength 5output 1explanationwe assign magical pill task follow give magical pill worker 0 Assign worker 0 task 0 0 5 5example 3input task 101530 worker 010101010 pill 3 strength 10output 2explanationwe assign magical pill task follow give magical pill worker 0 worker 1 Assign worker 0 task 0 0 10 10 Assign worker 1 task 1 10 10 15the pill give worker strong task Constraintsn taskslengthm workerslength1 n m 5 1040 pill m0 tasksi workersj strength 109