Question d’entretien chez Keeper Security

I was asked a string manipulation question.