Semcon interview question

Language test, multiple logical test