duplicatesTable function

Shows the duplicates of the data