Leetcode 1358 Number of Substrings Containing All Three Characters
In this Leetcode problem, we are asked to count all the substrings containing
a, b and c given a String as input. Here is the exact wording:
Given a string
sconsisting 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.
Problem statement with some test cases: