Pregunta de entrevista de clypd

How would you implement the auto-complete feature?