Subarrays with K Distinct
A **subarray** is a contiguous segment of an array. Given an integer array `nums` and an integer `k`, return the number of subarrays that contain **exactly** $k$ distinct integers.
A **subarray** is a contiguous segment of an array. Given an integer array `nums` and an integer `k`, return the number of subarrays that contain **exactly** $k$ distinct integers.