Refined Minimum Window Substring code with mroe continue