We have n jobs, each with a start time, an end time, and a profit. Return the maximum profit you can achieve, ensuring no two jobs overlap. A job can start exactly when another ends.
Click Run to execute sample tests.