Refactored array-based lists deletion exercises.