CMIMC 2017 Algebra Problem 10

Let c denote the largest possible real number such that there exists a nonconstant polynomial P with

P\left(z^{2}\right)=P(z-c) P(z+c)

for all z. Compute the sum of all values of P\left(\frac{1}{3}\right) over all nonconstant polynomials P satisfying the above constraint for this c.