Problem 791 · Medium
Count the characters of s, emit them in the order of the custom string, then append the rest.
Open the interactive visualisation