Question d’entretien chez Tech Mahindra

Write code in java to fetch the first unique character in a word