a string good repeat charactersgiven string s return number good substring length snote multiple occurrence substre occurrence countedA substre contiguous sequence character string Example 1input s xyzzazoutput 1explanation there 4 substring size 3 xyz yzz zza zaz the good substring length 3 xyzexample 2input s aababcabcoutput 4explanation there 7 substring size 3 aab aba bab abc bca cab abcthe good substring abc bca cab abc Constraints1 slength 100s consist lowercase english letter