def get_accumulative_list(arr):
    """
    Given an array, makes a cumulative one. Meaning that it add arr[0] to arr[1] and arr[1] to arr[2], etc.
    """
    for i in range(1, len(arr)):
        arr[i] += arr[i - 1]

    return arr