resolve Substring_with_Concatenation_of_All_Words by brutal force