Arcesium interview question

They asked me to make a solution for the scheduling problem