結果 : remove duplicates from unsorted array without using collection