Frage im Vorstellungsgespräch bei DXC Technology

Write a java program to find all the duplicate characters from your first name?