Mental Model
Find the smallest part of a big string that contains all characters of a smaller string. We slide a window over the big string and adjust it to keep all needed characters.
Analogy: Imagine you have a big bookshelf and want to find the shortest section that contains all your favorite books. You move your hands along the shelf, expanding and shrinking the section until you find the smallest one with all favorites.
Big string: A B C D E F G H I J K L M N O P
Window: ↑ ↑
start end
Target chars: C, F, G