Microsoft Interview Question

how to find repeated elements in an array