LC 3298. Count Substrings That Can Be Rearranged to Contain a String II
https://leetcode.com/problems/count-substrings-that-can-be-rearranged-to-contain-a-string-ii/description/
Tag: Two Pointer
typedef long long ll;
class Solution {
public:
long long validSubstringCount(string word1, string word2) {
int n