Number of Substrings Containing All Three Characters