Romania was declared independent from the Ottoman Empire by Kogalniceanu when ?
In return , Romania ceded the district of Bessarabia to Russia " in exchange " for the access to the ports on the Black Sea shore , and acquired Dobruja .