Count Unguarded Cells in the Grid | Leetcode 2257