Intuitive Javascript Solution
\nvar reverseStr = function(s, k) {\n    if (k > s.length) return s.split('').reverse().join('');\n    \n    const split = s.split('');\n    \n    // reverse th
```\nvar reverseStr = function(s, k) {\n    if (k > s.length) return s.split('').reverse().join('');\n    \n    const split = s.split('');\n    \n    // reverse the segment and put it back\n    for (let i = 0; i < s.length; i += 2*k) {\n        const reverse = split.splice(i, k).reverse();\n        split.splice(i, 0, ...reverse);\n    }\n    \n    return split.join('');\n};\n```
['Array', 'JavaScript']