Delinea interview question

coding question: string pattern matching