結果 : remove duplicates from arraylist without using collections