surrounded Regions : O(n)

time is O(n), space is O(n)