You are given a string s and an array of strings words. All the strings of words are of the same length. Return all starting indices of substring(s) in s that is a concatenation of each word in words exactly once, in any order.
Sliding Window + Hash Map
At each position, split the window into word-sized chunks and compare frequency maps.