Kubrick Group interview question

Basic logic questions