removing elements from Array exercise