The Sigil Sentinels guard the eastern wall of Codetikki. Each sentinel can see the sentinels to their right, and reports how many of them are shorter than themselves. Given an array of integers, return a new array where each element at index i is the number of smaller elements to the right of that element in the original input array.
Example 1:
Example 2:
Constraints:
1 <= n <= 10^5 -10^9 <= arr[i] <= 10^9
Tags:
