Lam Research Interview Question

Job scheduling and solving by greedy method