To answer this question, you need to know one IMPORTANT fact: complex roots (such as 3i) never come as a single root, they ALWAYS come as conjugate pairs. A conjugate is an opposite like, in this case -3i. The conjugate of "2 - 5i" is "2 + 5i". The conjugate of "-7 + i" is "-7 - i". In this case, we can write the root 3i as "0 + 3i" so the conjugate becomes "0 - 3i" our just -3i.
So if the zeros are 3i, -5 , and 5 then they MUST be (at least) 3i, -3i, -5 , and 5. If those are the zeros then we can make factors out of each one by prefacing each with "x - " like this:
(x - 3i)(x - -3i)(x - -5)(x - 5) or (x - 3i)(x + 3i)(x + 5)(x - 5) and then we just multiply them all together.
Using FOIL, we can multiply (x - 3i)(x + 3i) and get x2 - 9i2 (notice that the 2 middle terms drop out because they are opposites of each other) and we can simplify this by realizing that i2 = -1 so it becomes x2 + 9.
Then we can multiply (x + 5)(x - 5) to get x2 - 25. Then lastly, we can multiply our two answers:
(x2 + 9)(x2 - 25) to get:
f(x) = x4 - 16x2 - 225