Mariam Malak, a 19-year-old from a village in southern Egypt, had near-perfect grades in high school and dreamed of becoming a doctor. But when the results of the nationwide graduation exam were released in July, the honor student was told she had scored zero, failing to answer a single question on all seven tests she took.