NumbersSmaller.java
<reponame>KevinDayve/LeetCode<filename>NumbersSmaller.javaclass Solution {
    public int[] smallerNumbersThanCurrent(int[] nums) {
        int[] result = new int[nums.length];
        for (int i = 0; i < nums.length; i++) {
            int counter = 0;
            for(int j = 0; j < nums.length; j++) {
                if (nums[i] > nums[j] && j != i) {
                    counter++;
                }
            }
            result[i] = counter;
        }
        return result;
    }
}
