Leetcode 2489. Number of Substrings With Fixed Ratio | Hello Interview