Problem 3794 · Easy

Reverse String Prefix

Reverse the first k characters of a string by swapping pairs from the two ends of that prefix inward.

Open the interactive visualisation