substring of concatenation of all words leetcode