GE HealthCare interview question

Remove duplicates from array