comefrom: <qiyuangong>130_Surrounded_Regions_1.py
code: def buildLeakWall( board):
      leakWall, height, width = [], len(board), len(board[0])
      for i in range(height):
          if board[i][0] == "O":
              leakWall.append((i, 0))
          if board[i][width - 1] == "O":
              leakWall.append((i, width - 1))
      for j in range(width):
          if board[0][j] == "O":
              leakWall.append((0, j))
          if board[height - 1][j] == "O":
              leakWall.append((height - 1, j))
      return leakWall
masked: def sample_funcname ( var_0 ) :
      var_1 , var_3 , var_5 = [ ] , len ( var_0 ) , len ( var_0 [ 0 ] )
      for var_7 in range ( var_3 ) :
          if var_0 [ var_7 ] [ 0 ] == "O" :
              var_1.append ( ( var_7 , 0 ) )
          if var_0 [ var_7 ] [ var_5 - 1 ] == "O" :
              var_1.append ( ( var_7 , var_5 - 1 ) )
      for var_11 in range ( var_5 ) :
          if var_0 [ 0 ] [ var_11 ] == "O" :
              var_1.append ( ( 0 , var_11 ) )
          if var_0 [ var_3 - 1 ] [ var_11 ] == "O" :
              var_1.append ( ( var_3 - 1 , var_11 ) )
      return var_1
  