BankBazaar Interview Question

Remove non unique element from array