Lam Research interview question

Job scheduling and solving by greedy method