Pregunta de entrevista de Giesecke+Devrient

How do you solve and test this specific problem?