Program to find duplicate nums in an array