Problem 3992 · Easy

Rearrange String to Avoid Character Pair

Move every y ahead of the other letters, which places every y before every x.

Open the interactive visualisation