Arcesium Interview Question

They asked me to make a solution for the scheduling problem