MiTek interview question

Parse substrings from an array of strings.