you n job m worker you give array difficulty profit worker wheredifficultyi profiti difficulty profit ith job andworkerj ability jth worker ie jth worker complete job difficulty workerjevery worker assign job job complete multiple timesFor example worker attempt job pay 1 total profit 3 if worker complete job profit 0return maximum profit achieve assign worker job example 1input difficulty 246810 profit 1020304050 worker 4567output 100explanation Workers assign job difficulty 4466 profit 20203030 separatelyExample 2input difficulty 854757 profit 246699 worker 402525output 0 Constraintsn difficultylengthn profitlengthm workerlength1 n m 1041 difficultyi profiti workeri 105