diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -10,10 +10,9 @@
 class Solution:
     def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]:
         count = [0] * 101
-
-    res = []
-    for num in nums:
-        count[num] += 1
-    for num in nums:
-        res.append(sum(count[:num]))
-    return res
+        res = []
+        for num in nums:
+            count[num] += 1
+        for num in nums:
+            res.append(sum(count[:num]))
+        return res
