LeetCode Challenge #4: How Many Numbers Are Smaller Than the Current Number

Problem statement: