30:00
Given an integer array nums, return an integer array counts where counts[i] is the number of smaller elements to the right of nums[i].
1≤nums.length≤1051 \leq \text{nums.length} \leq 10^51≤nums.length≤105
−104≤nums[i]≤104-10^4 \leq \text{nums}[i] \leq 10^4−104≤nums[i]≤104
Process from right to left, maintaining sorted suffix