Question 696158
If P(x) has a root a then (x-a) is a factor.

So 2, 3, 5: {{{ P(x)=(x-2)(x-3)(x-5) }}}
and -1 , -1, 1: {{{ P(x)=(x+1)(x+1)(x-1) = (x+1)^2(x-1) }}}