One loop | Extremely Simplified | python
The key is range() and [::-1] to reverse string \n\n# Code\n\nclass Solution:\n    def reverseStr(self, s: str, k: int) -> str:\n        m = \'\'\n        for i
The key is range() and [::-1] to reverse string \n\n# Code\n```\nclass Solution:\n    def reverseStr(self, s: str, k: int) -> str:\n        m = \'\'\n        for i in range(0,len(s),2*k):\n                m+= (s[i:i+k][::-1]) + s[i+k:i+2*k]\n        return m\n```
['Python3']