Sobes.tech
Intern — Senior

Implement a function that counts the number of repetitions of each character

livecode

Task condition

Create a function that takes a string and returns a new string where each unique character is followed by a number indicating how many times it appears in the original text. Example: 'abbc' -> 'a1b2c1'.