Solution
C++ []\nclass Solution {\npublic:\n    string reverseStr(string s, int k) {\n        int len = s.size();\n\n        int left = 0, right = 0;\n        for(int i 
```C++ []\nclass Solution {\npublic:\n    string reverseStr(string s, int k) {\n        int len = s.size();\n\n        int left = 0, right = 0;\n        for(int i = 0; i < len; i += 2*k) {\n            left = i;\n            right = min(left + k - 1, len - 1);\n\n            while(left <= right) {\n                char tmp = move(s[left]);\n                s[left++] = move(s[right]);\n                s[right--] = move(tmp);\n            }\n        }\n        return move(s);\n    }\n};\n```\n\n```Python3 []\nclass Solution:\n    def reverseStr(self, s: str, k: int) -> str:\n        temp = []\n        while s:\n            temp.append(s[:k])\n            s = s[k:]\n        for i in range(0, len(temp), 2):\n            temp[i] = temp[i][::-1]\n        return \'\'.join(temp)\n```\n\n```Java []\nclass Solution {\n   public String reverseStr(String s, int k) {\n    char[] arr = s.toCharArray();\n    int n = arr.length;\n    for (int i = 0; i < n; i += 2 * k) {\n        int left = i;\n        int right = Math.min(i + k - 1, n - 1);\n        while (left < right) {\n            char temp = arr[left];\n            arr[left++] = arr[right];\n            arr[right--] = temp;\n        }\n    }\n    return new String(arr);\n}\n}\n```\n
['C++', 'Java', 'Python3']