結果 : write a program to find duplicate elements in an array in javascript