Bangladesh

The solution to this problem is floating schools.

An excerpt from the article 23 facts about Bangladesh
Schools on boats have been created for thousands of Bengali children who had no chance to study. The boat school goes from village to village picking up children who go to school on it. One hundred twelve boats travel all over Bangladesh to provide access to education. The project is sponsored by an NGO led by architect Mohammed Rezwan who has designed libraries and playgrounds on the water as well as the schools.