Given an array, find out for each element how many numbers in the array are smaller than it. Return the results in a new array.
Click Run to execute sample tests.