It highly depends. Everything from "monarchy" to "indirect democracy".
Even the Americans don't elect their president directly, they have a special council inbetween to distribute more power to the sparsely populated states.
Russia is a direct democracy (the people do directly elect their leader) but also the example of why technicalities like that make no difference in how fair politics are.