Pattern Matching Problem

Pattern Matching Problem

Find all occurrences of a pattern in a string.

Given: Two strings, Pattern and Text.

Return: All starting positions where Pattern appears as a substring of Text.