add solution for remove duplicates