Pinterest interview question

Solving a problem involving excluding words/phrases from comments