Question d’entretien chez LTM Limited

To optimize my previous code from their online test