A. He had been elected the president of their country by the people.
B. He was elected the president of their country by the people.
C. He was being elected the president of their country by the people.
D. He has been elected the president of their country by the people.