diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -11,7 +11,7 @@
     def countGoodSubstrings(self, s: str) -> int:
         count = 0
         for i in range(len(s) - 2):
-            x = s[i : i + 2]
+            x = s[i : i + 3]
             if x.count(x[0]) == 1 and x.count(x[1]) == 1 and x.count(x[2]) == 1:
                 count += 1
         return count
