Meta Interview Question

how to find duplicates in an array