It would be the same as if you were in a car that dropped in a body of water. Do not panic. Let the water fill up the submarine while breathing deep to oxygenate your body just like a swimmer. When enough pressure is gone from the submarine filled with water, open the hatch and swim to freedom. Most people drown in these scenarios because they try to leave before it fills with water and panic sets in.