結果 : print duplicate characters from string in javascript