This document presents a C++ implementation of a substring searching function that finds occurrences of a given substring within a target string using an efficient O(n+m) time complexity algorithm. The function utilizes cumulative sums and performs character-by-character verification in case of matching sums to ensure accuracy, especially in the presence of anagrams. The code includes examples that demonstrate the functionality and bounds checks for various cases.