Find duplicates in a given array

Find duplicates in a given array - Coding Problem | K5kC