Question d’entretien chez OpenAI

Refactor the following simple code