Gojek co-founder and former Education Minister Nadiem Makarim has been sentenced to 10 years in prison.