How do I solve the equation for this problem
Z(z+2)(z-1)=0
Z(z+2)(z-1)=0