Agoda Interview Question

Find duplicates in array and print the results