Question d’entretien chez Meta

Longest repeating substring with replacement