Nagarro interview question

Java program on finding the repeated character in string