Frage im Vorstellungsgespräch bei Vernost

Write a program in javascript to find duplicate in a string