Number of Substrings Containing All Three Characters
Problem Given a string s consisting only of characters a, b and c. Return the number of substrings containing at least one occurrence of all these characters a, b and c. link Example 1: Input: s = "ab