Close #2: Delete elements from array correctly