Pregunta de entrevista de Mastercard

I was given a technical assignment to complete