Test Case 2 Is Failing

Could You Please Tell Why My Test Case 2 is failing

Don’t sort!, jobs needs to be done in given order(it should have been mentioned in problem statement)

Could You Please tell me why sorting the array was causing problem ?

sorting rearranges the order of jobs!, but they need to be done in same order.