GitLab interview question

Explain how you'd implement a tagged search box.