Palo Alto Networks Interview Question

N - Rooks return all good matrix with N rooks.