Question d’entretien chez Thoughtworks

Why did you code the [coding exercise] in this way?