# Proving an analytic function is rational [duplicate]

If f is analytic in $|z| \leq1$ and satisfies $|f(z)| = 1$ on $|z| = 1$ prove that f is a rational function. I need a clue how to think about this? should i use the fact that f can be written as a power series?