Find minimum subarray length with k distinct integers | IBM Interview Question