This is a verified interview question from Relinns-technologies. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Filter Banned Words" covers key patterns like Strings.
"### Problem Given a string message and an array of banned words, replace all occurrences of banned words with asterisks of the same length, maintaining case sensitivity. ### Input - A string message - An array of banned words ### Output - The filtered message with banned words replaced with asterisks ### Constraints - The system needs to automatically filter out inappropriate words and replace them with asterisks while preserving the word length and case sensitivity."
Join thousands of developers practicing for Relinns-technologies.