Bishop diagonally attack on chess board

medium
Bishop diagonally attack on chess board - Coding Problem | K5kC