Ascendion interview question

Give the repeat count of characters in string object using stream api