Viridien interview question

typical algebra and logic questions