Answer
$P(x)=x^3-2x^2+x-2$
Work Step by Step
The factor theorem says that if $f(c)=0$, then $(x-c)$ is a factor of $f(x)$ and if $(x-c)$ is a factor of $f(x)$, then $f(c)=0$.
According to the Conjugate Pair Theorem, since $i$ is a complex zero, $-i$ is also a complex zero.
Using the known zeros, we construct the original function from the factors:
$P=(x-2)(x-i)(x-(-i))=x^3-2x^2+x-2$