There are n jobs and m workers. Job i has difficulty[i] and pays profit[i]; worker j can only do a job whose difficulty is at most worker[j]. Each worker does at most one job, and a job can be done by any number of workers. Return the maximum total profit.
There are n jobs and m workers. Job i has difficulty[i] and pays profit[i]; worker j can only do a job whose difficulty is at most worker[j]. Each worker does at most one job, and a job can be done by any number of workers. Return the maximum total profit.