Ebix interview question

write a program to find duplicate in array