Add accepted solution for remove duplicate.