diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -8,10 +8,10 @@
 class Solution:
     def alternateDigitSum(self, n: int) -> int:
         result=str(n)
-    sum=0
-            for i in range(len(result)):
-                if i%2 ==0:
-                    sum=sum+int(result[i])
-                else:  
-                    sum=sum-int(result[i])  
-        return sum
+        sum=0
+        for i in range(len(result)):
+            if i%2 ==0:
+                sum=sum+int(result[i])
+            else:  
+                sum=sum-int(result[i])  
+        return sum