Domanda di colloquio di Cruise

Asked me to essentially write a regex matching function