Pergunta de entrevista da empresa Flexciton

Given different jobs with different duration/start/end times, write an algorithm to schedule them as per the given constraints