Pregunta de entrevista de Zuora

How would you test this particular algorithm?