def remove_outliers(data, bounds):
    """ Returns indices of outliers in a numpy array

    :param data: numpy array
    :param bounds: bounds, in which numpy array values are accepted
    :return: list of indices that need to be removed
    """
    lower, upper = bounds
    indices_to_delete = []

    for i in range(len(data)):
        if not lower < data[i][1] < upper:
            indices_to_delete.append(i)

    return indices_to_delete