Letters of the words want fairness.
They decided to appear same number of times in a sentence equally.
Example:
Priorities
Will become:
Ppprrioooritttieeesss
Each letter appears 3 times, as the most common letter was i
, appearing 3 times.
It does not matter where you put the repeated letters, as long as they are next to a similar letter.
I.e.:
Pppriooorritttieeesss
is OK (the 'r' letter)
Ppprioororitttieeesss
is not OK (the 'r' letter)
Another example:
invoice
Will become:
innvvooiccee
Another example:
Remittance Advice
Will become:
Rrremmmiitttaannncce Adddvvvice
Space, comma, question mark, quotation, etc. are not considered letters for this challenge. Only need to consider [a-zA-Z]. Just once space is enough, and the order of the letters should remain the same.
The capitalization of letters does not matter, upper and lower case are countes as the same letter. That is: Pip
has 2 'P's and 1 'I', so it will become Piip
.
It is case insensitive letters can be in any form, Piip=piip=piiP=PiiP
This is code-golf