Schoolchildren in Namibia, which scored high marks for “child-friendliness” in a new ranking of African countries.