Question d’entretien chez Rippling

how to improve the time complexity