In this task, we would like for you to appreciate the usefulness of the groupby() function of itertools. You are given a string S. Suppose a character C occurs consecutively X times in the string.