If $\displaystyle f(z),g(z)$ are entire functions such that $\displaystyle f(g(z))$ is a nonconstant polynomial. Show that both $\displaystyle f(z), g(z)$ are polynomials. The hint says to use the Casorati-Weierstrass Theorem. But I still can't figure it out, can someone help please?