javascriptInfinite loopMedium
Counting capitals freezes on a lowercase letter
Time: 0:00
Test a custom input to verify an edge case (e.g. empty lists, negative numbers, duplicates).
⏱️0:00
This bug belongs to the infinite loops pattern
The tab freezes, nothing prints, and the loop condition never becomes false.