Problem 315 · Hard
Count smaller elements to the right efficiently.
Open the interactive visualisation