Nagarro Interview Question

Java program on finding the repeated character in string