結果 : remove duplicates from array without using set