Five real zeros force the degree to be at least 5. But both ends rising means the far ends agree, which happens only for even degree.
n≥5 and n even⇒n≥6
Those ceilings only rule degrees out, so check that 6 is reached: x2(x−1)(x−2)(x−3)(x−4) has degree 6, rises at both ends, and has exactly the five zeros 0, 1, 2, 3, 4. So the least possible degree is 6.