Thoughtworks Interview Question

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