Given a matrix $A \in \{0,1\}^{n \times n}$, let $diag(A)$ be the set of vectors $D \in \{0,1\}^n$ that are athe diagonal of one of the $n!$ matrices obtained from $A$ via row permutations.
What is the maximum size of $|diag(A)|$ over all matrices $A \in \{0,1\}^{n \times n}$?