Pregunta de entrevista de Thoughtworks

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