Pergunta de entrevista da empresa Rokt

Pattern matching: creating a function to see if two strings are matching based on a set of rules