Pregunta de entrevista de Mastercard

System design and coding question.