Two Words

Given a line of text (space-separated words), find the first word that appears at least twice in the…

Click here to read the complete problem statement.

If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

In the output section of this problem it says, “You may output the word in any letter case.”. But outputting “The” instead of “the” results in WA as shown here: submission 1, submission 2. Is it a problem in the my solution or the problem’s checker?