Confluent interview question

Regex pattern matching along with java concurrenty