結果 : remove duplicates from unsorted array using map data structure