Ebix Interview Question

write a program to find duplicate in array