def arr_subtract(array):
    """
    definition: func( array[] ) {...}
    objective : returns the subtraction of all elements in the given array
    """
    result = array[0]
    for i in range(1, len(array), 1):
        result -= array[i]
    return result
