Count the subarrays whose minimum is exactly minK and whose maximum is exactly maxK. Too many requests from your network. Please wait a minute.