X Y Z P

F F F T

F F T T

F T F F

F T T T

T F F F

T F T T

T T F T

T T T F

simple enough, one has to operate on X, Y and Z using the &&, ||, or ! operator to make it equal to P.

I’ve been doing this question for hours now with no solution that fits all the dataset. :mad: