Pregunta de entrevista de Dawn Foods

Scheduling algorithm problem pseudocode is fine