Leetcode 1520. Maximum Number of Non-Overlapping Substrings | Hello Interview