Step Roots of Littlewood Polynomials and the Extrema of Functions in the Takagi Class