Ottoman Empire

How did the Ottoman Empire deal with religious differences?