Solution to Substring with Concatenation...

Iterator and map