結果 : write an algorithm to delete elements in array