Scott Logic interview question

Design a filter that accepts conditionals