Solving a cubic equation | Factor Theorem