Pregunta de entrevista de Amazon

Design an executor for tasks with dependencies.