Infosys Interview Question

Removing duplicate from an array