leetcode 2489. Number of Substrings With Fixed Ratio - use invariants

Published --