Smarkets interview question

Regular expressions