
Since the leading coeficient is 1, then c must be equal to 1.
Now, by looking at the graph, we have that

so, we have that (x+3), (x-1) and (x-4) are all factors, and so we have that d=3.
We only need to figure out if a=1 or a=4.
So we have two options

If we evaluate the polynomial in x=--2 and x=3 then it have to be negative, so

on the other hand

We can see that the last evaluation is not negative, so this polynomial (P2) cannot be the one we are looking for. Thus, the polynomial is

and a=1.