Program to find duplicacy in Array