Expedia Group Interview Question

print all the duplicates in an array