Let $\overline{D(z_0,r)}\subset \Omega $ where $\Omega $ open and connected and $f$ is holomorphic $f:\Omega \to \mathbb{C}$, suppose $|f(z)|\leq |f(z^2)|$ on $D$. Show that $f$ is a constant function.
Let $g(z)=\frac{f(z)-z_0}{f(z^2)-z_0}$ then $|g(z)|\le 1$ in $D(0,r')$ (taking small $r'$ such that $f(z)\neq z_0$) and $|g(0)|=1$ so from maximum module theorem $g$ is constant also if $f(0)=z_0$ I can take $g=\frac{f(z)-z_0-r'/2}{f(z^2)-z_0-r'/2}$. But I don't see how $f$ is constant if $g$.
I am sure that's not the right approach (and maybe has mistakes what I am writing) to this problem, but I can't think of anything better I tried all the usual "tricks" ($e^f$, identity theorem )