Smallest window containing every letter

Write min_window(text, letters) that returns the shortest stretch of text that contains every character of letters, including repeats, or "" if none does. If several stretches tie for shortest, return the leftmost.

min_window("ADOBECODEBANC", "ABC")  ->  "BANC"
min_window("a", "aa")               ->  ""

A variable window with a Counter of what is still needed and a count of how many requirements are unmet. Grow from the right until everything is covered, shrink from the left while it stays covered. One check is a hundred thousand characters.

def min_window(text, letters):
    ...