Pregunta de entrevista de Conductor

How would you implement this idea?