removeDuplicates1() completed