Chubb Interview Question

Coding Task on Remove duplicate elements in arrays