Pregunta de entrevista de Deloitte

Asked to write code on one scenario based on trigger