Saasfocus Interview Question

duplicate elements in array coding