Domanda di colloquio di MyBuilder

Why did you write the code in this way?