Capgemini interview question

Write a program for getting duplicate letters in a string