Question d’entretien chez Tokopedia

Algorithm question, one that I remembered was string replacement.