For example, there is a given string which is consisted of `1s` and `0s`:

```
s = "00000000001111111111100001111111110000";

```

* What is the efficient way to get the count of longest 1s substring in s? (`11`)
* What is the efficient way to get the count of longest 0s substring in s? (`10`)

I appreciate the question would be answered from an algorithmic perspective.