Your question is Loop Through an Array. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
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):