Mantel interview question

How would you have done this [sample] differently?