Image InfoSystems interview question

Wap to remove duplicates in an array