Answer
Mohamed Abdullahi Mohamed, also known as Farmaajo, served as the President of Somalia from 2017 to 2022. During his tenure, an indirect presidential election took place in 2017, resulting in the election of Hassan Sheikh Mohamud as the new president. This indirect electoral system involves representatives from various regional states and the diaspora selecting the country's president.