How to have an autocomplete with multiple selection?

How do you propose it should work in the first place?

I find it hard to even comprehend how it should work.