Leetcode Subarrays With K Different Integers Rules With Examples