Answer
Caster Semenya's biological sex is differentiated by a condition called 5α-Reductase 2 deficiency. This condition results in the body not producing enough of an enzyme that converts testosterone into dihydrotestosterone, a hormone that is important for male sexual development. As a result, Semenya was born with external female genitalia but has internal testes and high levels of testosterone.