diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -9,6 +9,6 @@
 
 class Solution:
     def lexicalOrder(self, n: int) -> List[int]:
-        lst = [str(i) for i in range(1, n)]
+        lst = [str(i) for i in range(1, n + 1)]
         lst.sort()
         return [int(i) for i in lst]
