Pinterest Interview Question

Solving a problem involving excluding words/phrases from comments