Szegö’s extremum problem on the unit circle