Available Captures for Rook

Available Captures for Rook - Coding Problem | K5kC