Meta interview question

Regex matching