Problem 3913 · Medium

Sort Vowels by Frequency

Count vowels, rank them by frequency and first occurrence, then fill only the original vowel slots.

Open the interactive visualisation