Pregunta de entrevista de Amazon

Regular expression question, Scheduling question