Box interview question

Develop a string filter or somethin