Z
zoyamuk6
14 Oct 2026, 16:58
Simple approach explained for beginners.
Work with character counts or indices rather than building new strings in the loop; string concatenation inside loops is what usually causes TLE here.