Calculate smaller numbers to the right.

Program to count number of smaller elements on right of each element in
an array.