This is a verified interview question from Mykaarma. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "First Repeated Word Finder" covers key patterns like Strings.
"### Problem First Repeated Word Finder ### Description Given a sentence, find the first repeated word. The function should return the first repeated word or a standardized indication that no repeats were detected. ### Example: We work hard because hard work pays ### Output: hard ### Constraints: - The sentence contains only printable ASCII characters. - The sentence may contain leading or trailing spaces. - The sentence may contain multiple consecutive spaces between words. - The function should be case-insensitive. - The function should ignore delimiters when comparing words."
Join thousands of developers practicing for Mykaarma.