Printing the character, therefore option A and C are eliminated.
while loop starting with i=0, and whenever character repeated, if condition satisfies and print it and return 0 ( means directly exit from main function )
Option : B :- Prints the first repeated character in the string.
for this type of problems, take a sample i/p array and you can check the result.