Duolingo Interview Question

How would you (unit) test the algorithm?