Solera interview question

Write a program to find the duplicate characters of a given string