Pergunta de entrevista da empresa Zuora

How would you test this particular algorithm?