Substrings With K Distinct Leetcode