Problem 2000 · Easy

Reverse Prefix of Word

Reverse the prefix of a word up to the first occurrence of a given character. The visual points at the first match and reverses the segment before it.

Open the interactive visualisation