I'm trying to get how many any character repeats in a word. The repetitions must be sequential. For example, the method with input "loooooveee" should return 6 (4 times 'o', 2 times 'e').
i tried this code but it takes so long and I can not get the resultplease helpWe can examine all non-negative numbers < 10^10. Every such number can be represented with the sequence of 10 digits (with leading zeroes allowed).