javascript coding interview question : Remove duplicates and return ...

javascript coding interview question : Remove duplicates and return ...