Finding repeated items in a array using array manipulation methods

In reply to KillSteal:

Hi, thanks for the reply. I wanted to know if there are built-in functions then why not use them instead of writing user defined functions.

Thank you