Write a function that takes a `string` and returns a new string that replaces every character with the number of duplicates and the character itself, deleting the extra duplications.
Write a function that takes a `string` and returns a new `string` that replaces every character with the number of duplicates and the character itself, deleting the extra duplications.
The letters are from the Latin alphabet list only, any other characters, symbols or empty spaces shall not be tested.
- The letters are from the latin alphabet list only. Any other character, symbols, shall not be tested.