Question: Have you ever talked with someone you don't know in public places?
1.You can answer based on your personal experiences of talking to strangers in public places.
2.You can also share the context or reason for the conversation, such as asking for directions, casual small talk, etc.
Try these synonyms instead of repeating the question:
talked→conversed; chatted
someone you don't know→stranger; unfamiliar person
public places→public areas; communal spaces