Aim

For a given input string, count the contiguous characters and represent them in integers. If the contiguous count is 1, you need not add the integer.

Input: “aaaaabrrr”

Output: “a5br3”

Input: “aaaaaaaaaabrrraaa”

Output: “a10br3a3”