Option (D) is correct.
Explanation: Vigorous uterine contractions expel the baby through the birth canal. The NCERT states that soon after the infant is delivered, the placenta is also expelled from the uterus. So the placenta is shed after (iv), delivery, and before lactation is well established.

Why the other options are wrong
- (A) Between (i) and (ii) the baby is still in the uterus; the placenta is expelled only after the infant is delivered.
- (B) During the uterine contractions the baby has not yet been delivered, so the placenta has not been expelled.
- (C) This is still before delivery; the NCERT says the placenta is expelled soon after the infant is delivered.