Count subarrays with at least k fruit pairs | Uber