def naive(pattern: str, text: str):
    """Naive pattern matching."""

    res = []
    n = len(text)

    for i in range(n):
        for j, c in enumerate(pattern):
            if i + j == n or text[i + j] != c:
                break
        else:
            res.append(i)

    return res