Capgemini Interview Question

Write a program for getting duplicate letters in a string