
I'm clueless how to start with the solution to this problem.
First show that $f(z)$ has finitely many zeros (hint: zeros cannot accumulate); then show that this implies that $f(z)$ is a polynomial (both are good exercises about entire functions). The answer then follows easily.