you are given a string s. suppose a character ‘c’ occurs consecutively x times in the string. replace these consecutive occurrences of the character ‘c’ with (x, c) in string
0
You are given a string S. Suppose a character ‘c’ occurs consecutively X times in the string. Replace these consecutive occurrences of the character ‘c’ with (X, c) in string