SLB interview question

Leetcode medium, similar to minimum window substring