Which of the following functions has a factor of x + 1?

f(x) = x^3 – 12x^2 + 27x + 40
f(x) = x^3 - 14x^2 + 53x – 41
f(x) = x^3 – 14x^2 + 53x + – 40
f(x) = x^3 - 12x² + 27x + 39