The teacher will be very surprised to see your correct solution 😉
x1*x2 + x1*x4 + x2*x3 - x1*x3 - x3*x4 = 0
x1*x2 - x1*x3 + x1*x4 + x2*x3 - x3*x4 = 0