surrounded_region

Trick part:
optimize constant time complexity