For such questions, start by discussing the requirements with the interviewer. I decided to break have a collection of abusive or insensitive data in some storage (like trie) and then parsing the strings to see if there are some words which are not suitable. This was my first approach and we kept on refining this approach by discussing various use-cases.

For all rounds, I suggest talking with the interviewer. Be vocal, explain what your approach is and take feedback from interviewer and try to incorporate that into your approach.

--

--

Software Developer 👩‍💻

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aishna Gupta

Aishna Gupta

Software Developer 👩‍💻

More from Medium

Running a Motion Design Agency for a Month

TYPICAL MISTAKES IN PREPARING WHITE PAPER

CS373 Spring 2022: Mara Manskie

The Result of Stack Overflow Developer Survey, 2017