Input: Integer array.
Output: For each element, count of smaller elements to its right.
Example: [5,2,6,1] → [2,1,1,0].
Constraints: nums.length .
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
The problem
Input: Integer array.
Output: For each element, count of smaller elements to its right.
Example: [5,2,6,1] → [2,1,1,0].
Constraints: nums.length .