The teacher will be very surprised to see your correct solution 😉
(-1 + x)*(-3 + x)*(-2 + x) = 0
(x - 3)*(x - 2)*(x - 1) = 0