Create Find Index of duplicate elements in an Array.