Ahmadinejad’s Coup D’Etat

How did Mahmoud Ahmadinejad win the recent Iranian elections? And how should Iranians and the Obama administration respond?