Complex zeroes always come in pairs, so the two remaining zeroes are -i, 1+2i. These combine with their complements i and 1-2i: (x+i)(x-i)=x^2+1; (x-1+i)(x-1-i)=x^2-2x+2. So the polynomial is a(x-4)(x^2+1)(x^2-2x+2)=
a(x^3+x-4x^2-4)(x^2-2x+2)=a(x^5-2x^4+2x^3+x^3-2x^2+2x-4x^4+8x^3-8x^2-4x^2+8x-8).
f(x)=a(x^5-6x^4+11x^3-14x^2+10x-8), where a is a constant. f(0)=-40 so -8a=-40 and a=5.
f(x)=5x^5-30x^4+55x^3-70x^2+50x-40.