The premise contains a geographic impossibility: you cannot walk northwest from Monrovia, Liberia to reach Dakar, Senegal.
The West African coast runs roughly east-west from Liberia to Senegal. To walk the coast, you'd head northwest from Monrovia (correct), but the distance is ~1,200 km through Côte d'Ivoire, Ghana, Togo, Benin, Nigeria, Cameroon... wait—that's east. Actually, the coast from Liberia goes east to Nigeria. Dakar is on a peninsula jutting west from the main coast. There is no continuous coastal walking route from Monrovia to Dakar; the Gulf of Guinea intervenes.
If traveling east along the coast from Monrovia: Abidjan (Côte d'Ivoire), Accra (Ghana), Lomé (Togo), Porto-Novo (Benin), Abuja (inland, Nigeria), Yaoundé (inland, Cameroon)... you never reach Dakar.