Problem Statement
Given an 2D array Jobs of size Nx3, where Jobs[i][0] represents JobID , Jobs[i][1] represents Deadline , Jobs[i][2] represents Profit associated with that job. Each Job takes 1 unit of time to complete and only one job can be scheduled at a time.
The profit associated with a job is earned only if it is completed by its deadline. Find the number of jobs and maximum profit.