The correct option is B elected, directly or indirectly, by the people.
A 'republic' is a state in which the head of the state is directly or indirectly or appointed by the people. Currently, 135 of the word's 206 sovereign states use the world republic as the part of their official names.