Frage im Vorstellungsgespräch bei PolyAI

How would you implement predictive autocomplete for a string?