Code for problem "Surrounded Regions".