Surescripts interview question

Take out all the duplicates.