結果 : print duplicate characters from a string using javascript