Question d’entretien chez Meta

easy leet code style problem solved with prefix trees