The teacher will be very surprised to see your correct solution 😉
//x for 0 = 1\ || | |<1 for 1 = 1| + y = 0 || | \\0 otherwise/
y1 = -1
sum
-1
=
product
y1 = -1.0