Add remove duplicates solution