Mister Exam

Expression x&yvx&y&zvx&z&p

The teacher will be very surprised to see your correct solution 😉