class Solution: def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]: numss = sorted(nums) return [numss.index(x) for x in nums]