modify the non_unique file.

add solution to the non unique elements task.