Practice Problem

Substring with Concatenation of All Words

Difficulty: Hard

Find all starting indices where a concatenation of all given words (each of equal length) forms a substring.