The problem, in one line. Given a short word and a long string, say whether the long string contains an unbroken block that uses exactly the short word’s letters in some order. LeetCode 567.
The tell. A permutation is just the same letters in a different order, so only the letter counts matter. The block must be unbroken and exactly as long as the short word, which is a window of fixed width.