algorithm: check-string-composed-of-multiple-string: adding code to check if a string is an arbitrary number of concatenations of strings in a dictionary