def max_consecutive_sum(array):
    """
    given an array of numbers (positive, negative, or 0)
    return the maximum sum of consecutive numbers
    """
    max_value = max(array)
    running_sum = 0
    for num in array:
        if running_sum < 0:
            running_sum = 0
        running_sum += num
        if running_sum > max_value:
            max_value = running_sum
    return max_value