The function of hemoglobin is:

Prevention of anemia

Destruction of bacteria

To transport oxygen

Utilization of energy