Question d’entretien chez PolyAI

How would you implement predictive autocomplete for a string?