Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Imagine that startTime[i] and endTime[i] form an interval (i.e. [startTime[i], endTime[i]]).
The answer is how many times the queryTime laid in those mentioned intervals.