Surrounded Regions

Capture all regions of O that are completely surrounded by X.

Examples
Input: ["XXXX","XOOX","XXOX","XOXX"]
Output: ["XXXX","XXXX","XXXX","XOXX"]
Hints

Surrounded Regions

Capture all regions of O that are completely surrounded by X.