Suppose $f(z)$ and $g(z)$ are entire functions such that $(f\circ g)(z)$ is a non constant polynomial. Show that both $f(z)$ and $g(z)$ are polynomials.
I tried by contradiction: Ruling out $f(z)$ and $g(z)$ one by one by assuming not a polynomial. And the hint given in the book is to use the Casorati-Weierstrass Theorem. "The analytic function with isolated singularity at $a$ maps a punctured neighbourhood of $a$ to a dense set in $\mathbb{C}$
I am not sure I am on the right way or not?
I need help. Please some one suggest me.