Qualtrics Interview Question

pattern match string into another string