Pregunta de entrevista de Tabcorp

How would you evaluate the algorithm?