Alice wrote the names of her friends in a dynamic array: {'Bob', 'Charlie', 'Eve', 'Jane', 'Anna'}. She wanted to have no more than 5 friends and knew her friendship with Anna was in danger and, probably, she would have to delete her from the list. That is why she decided to use a dynamic array with the capacity of 5 and the scaling factor equal to 2.
Indeed, after long discussions, she decided to end their friendship and delete Anna from the array. How many elements will be moved to the left after the deletion? If she needs to allocate a new array due to overflowing, consider copying the elements as moving.