[update]solution for Substring with concatenation of all words