Add solution to substring with concatenation of all words