Bloomberg Interview Question

Count smaller number except self