give binary string s return number nonempty substring number 0s 1s 0s 1s substring group consecutivelysubstring occur multiple time count number time occur Example 1input s 00110011output 6explanation there 6 substring equal number consecutive 1s 0s 0011 01 1100 10 0011 01notice substring repeat count number times occuralso 00110011 valid substring 0s 1s group togetherExample 2input s 10101output 4explanation there 4 substring 10 01 10 01 equal number consecutive 1s 0s Constraints1 slength 105si 0 1