El profesor se sorprenderá mucho al ver tu solución correcta😉
(1 + x)*(-1 + x)*(-2 + x) = 0
(x - 2)*(x - 1)*(x + 1) = 0