Leetcode Subarrays With K Different Integers Rules