Solve Problem 'Surrounded Regions' with Difficulty 'Medium'