Once a duplicate entry is reported by someone, merging them is time-consuming, especially when the number of duplicates is more than 2. Write a script to automate that part.