Prove or give a counterexample to this:
$f(z)$ is an analytic function on domain D containing some circle $\lvert z \rvert = r$. If $\lvert f(z) \rvert$ remains constant along $\lvert z \rvert = r$, then $f(z)$ is of this form $f(z) = c\cdot z^n$ where $c$ is a complex constant.
Intuitively I think it's right, but I don't know how to prove it.