Dynatrace OneAgent can collect response-time measurements for requests handled by a service. Given an array of response times and a threshold, count how many requests took longer than the threshold.
Implement a function that scans the array once and returns the count of values strictly greater than threshold.
response_times, an array of integers, and threshold, an integer.threshold.def count_slow_requests(response_times, threshold):