DevRev interview question

Code to get duplicates from an array.?