def linear_search(array, element):
    """
    Linear Search
    Complexity: O(N)
    """
    indices = []

    for i in range(len(array)):
        if element == array[i]:
            indices.append(i)
    return indices