Here are some ways you can talk to an unknown girl in a similar way, which proves beneficial for you:

Give smile

First of all, after seeing an unknown girl, you pass the smile so that that girl will notice you, it means that she has seen you, then you can start talking to them.

Get a little information about him

If you want to talk to an unknown girl, then you can get some information about the girl from anywhere, so that when you go to talk to them, you will be able to talk.

Make eye contact

When you are talking to a girl, then if possible, then talk with their eyes in your eyes because by doing this the girl starts taking more interest in your talk. So that you can find most of the talk of the girl.

Fix the language

If a person is attracted to you, it will be from his words only. If you are talking face to face with any girl, then you should keep your language fine because the better your language, the girl will be attracted towards your talk.