Pergunta de entrevista da empresa Dawn Foods

Scheduling algorithm problem pseudocode is fine