Pergunta de entrevista da empresa Confluent

Implement logic to see if string matches given regular expression