Is Liberia a country or a city?

Both.
Liberia is the name of a country in West Africa, but also the name of a Costa Rican city.