LeetCode 999. Available Captures for Rook
Description https://leetcode.com/problems/available-captures-for-rook/ On an 8 x 8 chessboard, there is exactly one white rook ‘R’ and some number of white bishops ‘B’, black pawns ‘p’, and empty squares ‘.’.…