Problem 3794 · Easy
Reverse the first k characters of a string by swapping pairs from the two ends of that prefix inward.
Open the interactive visualisation