Implement the minimum window search problem in leetcode.