Rakuten Interview Question

Remove duplicate elements from an array