Question d’entretien chez Citadel Securities

Implement a data structure that can efficiently handle operations X and Y on strings.