can anyone provide program for this

In a string, a “run” is a substring with consisting of consecutive
occurrences of the same character. For example, the string
“mississippi” contains the following runs - “ss”, “ss” and “pp”.

In this question, given a string, you have to output the length of the
longest run in the string

its pretty straight forward here