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 to cover a section and shrink or expand it until you have all favorites in the smallest space.
Big string: A B C D E F G H I J Window: [ ↑ ] Needed chars: X Y Z Window moves right and left to cover all needed chars.
