Problem 2653 · Medium
Count the negative values in each window by magnitude, then read off the x-th smallest negative value.
Open the interactive visualisation