update solution for Surrounded Regions