結果 : write the algorithm and code for inserting an element in an array