problem : matrix has n random inaccessible cells and for each inaccessible cell, the eight adjacent cells cannot be inaccessible
Question : how can i improve my solut