A Necessary and Sufficient Condition for Global Existence for a Degenerate Parabolic Boundary Value Problem