Minimum Window Substring

Given two strings s and t, find the shortest contiguous substring of s that contains every character from t (including duplicates). If no such substring exists, return "".

A substring must preserve order only insofar as it is contiguous; the characters from t may appear in any arrangement inside the window.

If more than one substring has that minimum length, return the one that starts earliest (the leftmost minimum window). For example, with s = "baab" and t = "ab", both "ba" and "ab" have length 2, so the answer is "ba".

Examples
Input: ["ADOBECODEBANC","ABC"]
Output: "BANC"
Hints
Related Problems

Minimum Window Substring

Given two strings `s` and `t`, find the **shortest contiguous substring** of `s` that contains every character from `t` (including duplicates). If no such substring exists, return `""`.