EPAM Systems interview question

Remove duplicates in array ( scenario based questions )