monday.com interview question

Regex in Swift - full implementation