Question d’entretien chez Morningstar

optimize a certain part of the code from the assignment