Salesforce Interview Question

How to find duplicate letters in a string