Using Set we are going to calculate how many times each element was met in the String
[1] Valentyn N Sichkar. Compressing the string using Sets in Python // GitHub platform [Electronic resource]. URL: https://github.com/sichkar-valentyn/Compressing_the_string_using_Sets_in_Python (date of access: XX.XX.XXXX)
The goal is to compress the input string with elements divided by gaps with the element itself and number it was met in the initial string.
[1] Valentyn N Sichkar. Compressing the string using Sets in Python // GitHub platform [Electronic resource]. URL: https://github.com/sichkar-valentyn/Compressing_the_string_using_Sets_in_Python (date of access: XX.XX.XXXX)