The whole question looks like-
$f$ is a holomorphic function on the interior of the open unit disc (say $D$) around $0$ and $f(z)\ne0\ \forall z\in D$. Suppose, $|f(z)|\to1$ as $|z|\to1$. Is f a constant function? Now, if we remove the non-vanishing condition then is $f$ constant?
The 2nd part is easy if we take $f(z)=z$, then $|f(z)|\to1$ as $|z|\to1$ but $f(0)=0$.
For the first part, I tried to show $f'(z)=0\ \forall z\in D$
From application of Cauchy intrgral formula, we know that $f'(z)={1\over 2\pi i}\int_{C} \frac{f(\zeta)}{(\zeta-z)^2}d\zeta$ where $z\in D$ and $C$ is a circle around $z$ inside $D$.
So, $|f'(z)|\le\sup\{\frac{f(\zeta)}{(\zeta-z)^2}|\zeta\in C\}\operatorname{Radius}(C)$
Can use these concepts and the condition $|f(z)|\to1$ as $|z|\to1$ to show $f$ is constant? I even don't know the answer, so may be the $f$ is non-constant. But I think it will be constant.
Can anybody solve the problem? Thanks for assistance in advance.