You are given an m x n matrix board containing letters 'X' and 'O'. Capture all regions that are surrounded:
'O' cell.'X' cells if you can connect the region with 'X' cells and none of the region cells are on the edge of the board.To capture a surrounded region, replace all 'O's with 'X's in-place within the original board. You do not need to return anything.
m == board.lengthn == board[i].length1 <= m, n <= 200board[i][j] is 'X' or 'O'board = [["X","X","X","X"],["X","O","O","X"],["X","X","O","X"],["X","O","X","X"]][["X","X","X","X"],["X","X","X","X"],["X","X","X","X"],["X","O","X","X"]]board = [["X"]][["X"]]