Smallest Distinct Window Leetcode