solve substring with concatenation of all words
solve edit distance