Pregunta de entrevista de Fetch

How would you implement a discount offer?