Badr IT Interview Question

remove duplicates from array