Apple Interview Question

match 2 strings containing regex