def findPattern(genome, pattern):
    """
    find the indexes of the pattern in a given genome sequence
    """
    indexes = []

    for index in range(0, len(genome) - len(pattern) + 1):
        if genome[index:index + len(pattern)] == pattern:
            indexes.append(index)

    return indexes