Characterization of one-to-one conformal mapping from unit disc onto a square

Solution 1:

Hint: $g(z)=f^{-1}(if(z))$ is a conformal 1-1 map from $U$ onto itself fixing the origin. Try playing a little with this or something similar.