Rokt Interview Question

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