Qualcomm Interview Question

Smallest subarray with k distinct integers