arr = [1,1,2,2,3,3,4,5]
# want to know which items are duplicated
# answer should be [1,2,3]