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 while trying to make it as small as possible.
Analogy: Imagine you have a long shelf of books (big string) and a list of books you want to borrow (small string). You slide a box along the shelf to pick up all the books on your list. You try to make the box as small as possible while still holding all the books you need.
big string: A B C D E F G H I J K L M N O P
window: ↑ ↑
start end
window covers substring from start to end pointers