Minimum Window Substring
Track how many required characters are satisfied as you grow the right edge. Once the window is valid, shrink from the left to find the smallest valid window before expanding again.
Return the smallest substring of s that contains all characters from t.