The unplanned journey that led Lagos to becoming an overwhelmed megacity