Progress Interview Question

1) Find repeated and Duplicate element in an array.