Answer:

Step-by-step explanation:
We can place a rook in each row in
ways.
We can place a rook in each column in
ways.
So the total ways in which we can place a rook in a row or column is

Now there are 8 ways to choose the column for the first row, 7 ways to choose the column for the second row, and so on. So there are 8! ways to choose a column for a row.
So, we get the final answer by subtracting the 8! from the total ways a rook can be placed which is
when binomial coefficients are not evaluated