Passage: Sarajevo has been home to many different religions for centuries, giving the city a range of diverse cultures. In the time of Ottoman occupation of Bosnia, Muslims, Serbian Orthodox, Roman Catholics, and Sephardi Jews all shared the city while maintaining distinctive identities. They were joined during the brief occupation by Austria-Hungary by a smaller number of Germans, Hungarians, Slovaks, Czechs and Ashkenazi Jews. By 1909, about 50% of the city's inhabitants were Muslim, 25% were Catholic, 15% were Orthodox, and 10% were Jewish.Historically, Sarajevo has been home to several prominent Bosnian poets, scholars, philosophers, and writers. To list only a very few; Nobel Prize-winner Vladimir Prelog is from the city, as are the writer Zlatko Topčić, and the poet Abdulah Sidran. Nobel Prize-winner Ivo Andrić attended high school in Sarajevo for two years. Academy Award-winning director Danis Tanović live in the city. Sarajevo is also the home of the East West Theatre Company, the only independent theater company in Bosnia and Herzegovina.

Question: There was religious freedom while who occupied Bosnia?
Ottoman