A Mathematical Dissection of the Adaptation of Cell Populations to Fluctuating Oxygen Levels