IBM Interview Question

String Concatenation, Pattern Matching Array